package main

import "fmt"

func main() {
	nums := [4]int{2, 3, 4, 5}
	var p *[4]int
	p = &nums
	fmt.Println(*p)
	fmt.Println((*p)[3])
	fmt.Println(p[3])
	for i := 0; i < len(p); i++ {
		fmt.Println(p[i])
	}
	update(p)
	fmt.Println(nums)
}
func update(p *[4]int) {
	p[0] = 50
}
